<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./lib/vue-2.4.0.js"></script>
    <script src="./lib/vue-router-3.0.1.js"></script>

</head>

<body>
    <div id="app">
        <router-view></router-view>
        <router-view name="left"></router-view>
        <router-view name="right"></router-view>
    </div>
    <script>
        var headbox = Vue.extend({
            template: "<h1>head</h1>"
        })
        var leftbox = Vue.extend({
            template: "<h1>left</h1>"
        })
        var rightbox = Vue.extend({
            template: "<h1>right</h1>"
        })

        var vmRouter = new VueRouter({
            routes: [
                {
                    path: "/", components: {
                        "default": headbox,
                        "left": leftbox,
                        "right": rightbox
                    }
                },

            ]
        })
        var vm = new Vue({
            el: "#app",
            router: vmRouter
        })
    </script>
</body>

</html>